package eu.dominicum.aas.pd.core;


import java.util.GregorianCalendar;

/**
 * Describes people.
 *
 * @author Harry Klerks
 * @since 0.1
 */
public class Person extends AbstractDomainObject {

    private ESex sex;
    private GregorianCalendar dateOfBirth;
    private Name name;

    public Person() {
    }

    private Person(GregorianCalendar dateOfBirth, String sex) {

        this.dateOfBirth = dateOfBirth;
        this.sex = ESex.valueOf(sex);
    }

    public static void make(GregorianCalendar dateOfBirth, String sex) {

        Person newPerson = new Person(dateOfBirth, sex);
    }


    public ESex getSex() {
        return sex;
    }

    public GregorianCalendar getDateOfBirth() {
        return dateOfBirth;
    }

    public Name getName() {
        return name;
    }

}
